def get_speedup(fraction_enhancement, speed_enhancement, fraction_unchanged):
    """Based on Amdhal’s Law"""
    speed_overall = 1 / (
        fraction_unchanged + (fraction_enhancement / speed_enhancement)
    )
    return speed_overall


def get_speedup_alt(fraction_enhancement, speed_enhancement):
    """Based on Amdhal’s Law"""
    speed_overall = 1 / (
        (1 - fraction_enhancement) + (fraction_enhancement / speed_enhancement)
    )
    return speed_overall
